package com.boot2551.common;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class MyAop {
    @Pointcut(value = "execution(* com..service.*.*(..))")
    public void test(){

    }
    @Before(value = "test()")
    public void before(JoinPoint point){
        System.out.println(point.getSignature().getName()+" 将要执行");
    }
}
